﻿using System.Collections.Generic;

namespace gbL.NetBoard.Filters
{
    public class FilterSet
    {
        public FilterSet()
        {
            MessageTypeFilter = new MessageTypeFilter();
            TagFilter = new TagFilter();
            FromFilter = new FromFilter();
            EntryFuncFilter = new EntryFuncFilter();
        }

        public MessageTypeFilter MessageTypeFilter { get; set; }

        public TagFilter TagFilter { get; set; }

        public FromFilter FromFilter { get; set; }

        public EntryFuncFilter EntryFuncFilter { get; set; }

        protected internal virtual IEnumerable<IReadOnlyEntryFilter> ToArray()
        {
            return new IReadOnlyEntryFilter[] {
                MessageTypeFilter,
                TagFilter,
                EntryFuncFilter,
                FromFilter
            };
        }
    }
}
